package com.example.tests;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Properties;

import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;

import com.example.fw.AppManager;

public class TestBase{

		protected static AppManager app;
		public ArrayList<Object[]> list;
				
        @BeforeSuite
        public void setUp() throws Exception {
                String configFile = System.getProperty("configFile", "application.properties");
        		Properties properties = new Properties();
                properties.load(new FileReader(new File(configFile)));
        		app = new AppManager(properties);
        }

        @AfterSuite
        public void tearDown() throws Exception {
                app.stop();
        }        
}